
package com.xbongbong.admin.domain.dao;

import com.xbongbong.admin.domain.entity.VideoEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;


/**
* @author autoGen
* @time 2019-09-18 13:56:16
*/
@Repository
@Mapper
public interface VideoDao {


	Integer insert(VideoEntity video);
	Integer update(VideoEntity video);

	void insertBatch(@Param("list") List<VideoEntity> videoList);

	Integer deleteByKey(@Param("key") Long key);
	VideoEntity getByKey(@Param("key") Long key);


	List<VideoEntity>  findEntitys(@Param("param") Map<String, Object> param);
	Integer getEntitysCount(@Param("param") Map<String, Object> param);

	/**
	 * 批量更新（更新sort，update_time）
	 *
	 * @param list 视频列表
	 * @author 徐俊杰
	 * @date 2019/9/23 14:52
	 * @since v1.0
	 */
	void updateBatch(@Param("list") List<VideoEntity> list);



}